#include <IO/VideoTextMode.h>
#include <Utility/intrinsic.h>
/*
@brief 读取当前屏幕在显存起始位置
@param void
@return 显存起始位置
*/
WORD VideoTextModeLocateStart(void)
{
    OUT_BYTE(CRT_CONTROLLER_ADDR_REG, CRT_CONTROLLER_START_ADDR_HIGH);
    BYTE bStartHigh = IN_BYTE(CRT_CONTROLLER_DATA_REG);
    OUT_BYTE(CRT_CONTROLLER_ADDR_REG, CRT_CONTROLLER_START_ADDR_LOW);
    BYTE bStartLow = IN_BYTE(CRT_CONTROLLER_DATA_REG);
    return MAKEWORD(bStartLow, bStartHigh);
}
